package org.dromara.system.domain.bo;

import org.dromara.system.domain.SysProfitRecord;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.hibernate.validator.constraints.Length;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;
import java.io.Serial;
import java.io.Serializable;

/**
 * 分佣记录业务对象 sys_profit_record
 *
 * @author yixiacoco
 * @date 2025-09-04
 */
@Data
@AutoMapper(target = SysProfitRecord.class, reverseConvertGenerate = false)
public class SysProfitRecordBo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 记录id
     */
    @NotBlank(message = "记录id不能为空", groups = {EditGroup.class})
    @Length(max = 36, message = "记录id不能大于{max}个字符", groups = {EditGroup.class})
    private String recordId;
    /**
     * 代理商id
     */
    @NotBlank(message = "代理商id不能为空", groups = {AddGroup.class, EditGroup.class})
    @Length(max = 36, message = "代理商id不能大于{max}个字符", groups = {AddGroup.class, EditGroup.class})
    private String agentId;
    /**
     * 订单号
     */
    @Length(max = 36, message = "订单号不能大于{max}个字符", groups = {AddGroup.class, EditGroup.class})
    private String orderId;
    /**
     * 分佣金额
     */
    @NotNull(message = "分佣金额不能为空", groups = {AddGroup.class, EditGroup.class})
    private BigDecimal profitAmount;
    /**
     * 关联结算单号
     */
    @Length(max = 36, message = "关联结算单号不能大于{max}个字符", groups = {AddGroup.class, EditGroup.class})
    private String settlementId;
    /**
     * 分佣备注
     */
    private String note;
    /**
     * 
     */
    private Date profitTime;
    /**
     * 状态（0-未结算，1-已结算）
     */
    private Integer status;
    /**
     * 
     */
    private Date createdAt;
}
